class Person {
    readonly name: string = ''
    constructor(name: string) {
        this.name = name
    }
}

const p = new Person('lyy')
// p.name = '213'// 只读属性 不能改


export { }